<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex paymentResults_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between paymentResults_fd0_0'>
					<view class='flex flex-wrap align-center paymentResults_fd0_0_c0'>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='paymentResults_fd0_0_c1_c0'>支付结果</text>
					</view>
					<view class='flex align-center justify-end paymentResults_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

			<view class="flex flex-direction flex-wrap align-center justify-center paymentResults_flex_1">
				<image class='paymentResults_fd1_0' mode="aspectFit" :src='STATIC_URL+"304.png"'></image>
				<text class='paymentResults_fd1_1'>支付成功</text>
				<view class='flex flex-wrap align-center paymentResults_fd1_2'>
					<text>支付方式：</text>
					<text v-if=" pay_type=='1'">微信支付</text><text v-if=" pay_type=='2'">支付宝支付</text><text
						v-if=" pay_type=='3'">余额支付</text>
				</view>
				<view class='flex flex-wrap align-center paymentResults_fd1_3'>
					<text>支付时间：</text>
					<text class='paymentResults_fd1_3_c1'>{{appSystemDate}}</text>
					<text>{{appSystemTime}}</text>
				</view>
				<button class='paymentResults_fd1_4' @tap.stop="handleJumpDiy" data-type="redirectTo"
					:data-url="`/pages/newShop/shopOrder/shopOrder?type=all`">查看订单</button>
				<button class='paymentResults_fd1_5' @tap.stop="handleJumpDiy" data-type="reLaunch"
					:data-url="`/pages/tabBar/shoppingIndex/shoppingIndex`">返回首页</button>
			</view>




		</view>
	</view>
</template>
<script>
	import Dayjs from '@/libs/day.js'

	export default {
		components: {},


		data() {
			return {
				"appCurrentTime": Date.parse(new Date()),
				"appCurrentTimer": null,
				"pay_type": null,
				"order_sn": null,
				"type": null
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			appSystemTime() {
				return Dayjs(this.appCurrentTime).format('HH:mm:ss')
			},
			appSystemDate() {
				return Dayjs(this.appCurrentTime).format('YYYY-MM-DD')
			}
		},
		watch: {},
		onLoad(options) {
			let {
				pay_type,
				order_sn,
				type
			} = options
			if (pay_type !== undefined) this.pay_type = pay_type
			if (order_sn !== undefined) this.order_sn = order_sn
			if (type !== undefined) this.type = type
			this.appCurrentTimer = setTimeout(() => {
				this.appCurrentTime = Date.parse(new Date())
			}, 1000)
		},
		onUnload() {
			clearTimeout(this.appCurrentTimer)
		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {

		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.paymentResults_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.paymentResults_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 200rpx;
	}

	.paymentResults_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
	}

	.paymentResults_fd0_0_c0 {
		width: 200rpx;
	}

	.paymentResults_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.paymentResults_flex_1 {
		margin: 88rpx 0rpx 0rpx 0rpx;
	}

	.paymentResults_fd1_5 {
		border: 1px solid var(--benbenbdColor2);
		background: rgba(255, 255, 255, 1);
		line-height: 72rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		font-size: 28rpx;
		color: var(--benbenFontColor4);
		width: 280rpx;
		height: 72rpx;
		font-weight: 500;
	}

	.paymentResults_fd1_4 {
		background: var(--benbenbgColor2);
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		font-size: 28rpx;
		color: #fff;
		width: 280rpx;
		height: 72rpx;
		line-height: 72rpx;
		margin: 60rpx 0rpx 32rpx 0rpx;
		font-weight: 500;
	}

	.paymentResults_fd1_3_c1 {
		margin: 0rpx 10rpx 0rpx 0rpx;
	}

	.paymentResults_fd1_3 {
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
		margin: 10rpx 0rpx 0rpx 0rpx;
	}

	.paymentResults_fd1_2 {
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
	}

	.paymentResults_fd1_1 {
		font-weight: 700;
		font-size: 32rpx;
		line-height: 105rpx;
	}

	.paymentResults_fd1_0 {
		width: 250rpx;
		height: 180rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}
</style>